﻿<%@ Page Title="Login Admin" Language="C#" MasterPageFile="~/AdminMaster.master" AutoEventWireup="true" CodeBehind="LoginAdmin.aspx.cs" Inherits="ShopOnline.LoginAdmin" Theme="ShopOnline" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="css/smart_wizard.css" rel="stylesheet" type="text/css" />
    <link href="css/BusinessCard.css" rel="stylesheet" type="text/css" />
    <style>
        .panelLogin
        {
            margin-top:20px;
        }
    </style>

    <script type="text/javascript">

        $(document).ready(function () {
            $('.form-register .tb7').keydown(function (event) {
                if (event.keyCode == '13') {
                    $('#<%= btnLogin.ClientID %>').click();
                    agent = jQuery.browser;
                    if (agent.msie) {
                        event.cancelBubble = true;
                    } else {
                        event.stopPropagation();
                    }
                }
            });
        });

    </script>

    <div class='form-register panelLogin'>
        <table cellpadding="5" style='margin: auto' cellspacing="5">
            <tr>
                <td>
                    Name
                    <label class='required'>*</label>
                </td>
                <td>
                    <asp:TextBox ID='txtName' runat="server" class='tb7' ></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Login" ID="require1" runat="server" ControlToValidate="txtName"
                        Display="Dynamic" CssClass="requiredField" ErrorMessage="" Text=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Password
                    <label class='required'>*</label>
                </td>
                <td>
                    <asp:TextBox ID='txtPassword' TextMode="Password" runat="server" class='tb7'></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Login" ID="RequiredFieldValidator3"
                        runat="server" class='requiredField' ErrorMessage="" Text='' Display="Dynamic"
                        ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <button id="btnLogin" type="button" runat="server" onserverclick="btnLogin_OnClick" validationgroup="Login" class="button btn-cart">
                        <span><span>Login</span></span></button>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
